// +build wireinject

package services

import (
	"gitee.com/cjf8134/bbs_serve/internal/pkg/minio"
	"github.com/google/wire"
	"gitee.com/cjf8134/bbs_serve/internal/app/apiserve/repositories"
	"gitee.com/cjf8134/bbs_serve/internal/pkg/config"
	"gitee.com/cjf8134/bbs_serve/internal/pkg/log"
	"gitee.com/cjf8134/bbs_serve/internal/pkg/redis"
)

var testProviderSet = wire.NewSet(
	log.ProviderSet,
	config.ProviderSet,
	redis.ProviderSet,
	minio.ProviderSet,
	ProviderSet)

func CreateService(cf string,
	rpo repositories.MysqlApiServeRepository,
) (DefaultService, error) {
	panic(wire.Build(testProviderSet))
}
